package com.gdhz.xiaohengqin.device.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;


/**
 * @author Swallows
 * @date 2025-05-30 10:52
 */
@Getter
@Setter
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class WieGandResponse {

    private String jsonrpc = "2.0";

    private Result result;
    private Result error;

    private long id;

    @Getter
    @Setter
    @NoArgsConstructor
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class Result {

        private boolean success;

        private String msg;

        private int code;

        @JsonProperty("设备序列号")
        private String deviceSn;
        private String version;
        private String message;

        @JsonProperty("问题源")
        private String faultSource;
    }
}
